# -*- mode: snippet; require-final-newline: nil -*-
# name: capture_io
# key: caio
# --
out, err = capture_io do
  ${0}
end

assert_match %r"${1:info}", out
assert_match %r"${2:bad}", err